<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en" class="no-js">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<meta charset="utf-8" />
<title>系统管理 - 编辑组权限</title>
<?php include($this->c['_homes']['_viewsHome'].'/_global/_head.php');?>
</head>
<!-- BEGIN BODY -->
<body class="page-header-fixed page-sidebar-fixed">
<!-- BEGIN HEADER -->
<?php include($this->c['_homes']['_viewsHome'].'/_global/head.php');?>
<!-- END HEADER -->
<div class="clearfix"></div>
<!-- BEGIN CONTAINER -->
<div class="page-container" > 
  <!-- BEGIN HORIZONTAL MENU PAGE SIDEBAR1 -->
  <?php include($this->c['_homes']['_viewsHome'].'/_global/menu.php');?>
  <!-- END BEGIN HORIZONTAL MENU PAGE SIDEBAR --> 
  <!-- BEGIN PAGE -->
  <div class="page-content"> 
    <!-- BEGIN PAGE HEADER-->
    <div class="row">
      <div class="col-md-12"> 
        <!-- BEGIN PAGE TITLE & BREADCRUMB-->
        <h3 class="page-title"> 编辑组权限 </h3>
        <ul class="page-breadcrumb breadcrumb">
          <li> <i class="icon-home"></i> <a href="/manage">后台</a> <i class="icon-angle-right"></i> </li>
          <li> 系统管理 <i class="icon-angle-right"></i> </li>
          <li>编辑组权限</li>
        </ul>
        <!-- END PAGE TITLE & BREADCRUMB--> 
      </div>
    </div>
    <!-- END PAGE HEADER--> 
    <!-- BEGIN PAGE CONTENT-->
    
    <div class="row">
      <div class="col-md-6"> 
        <!-- BEGIN SAMPLE FORM PORTLET-->
        <div class="portlet box blue">
          <div class="portlet-title">
            <div class="caption"> <i class="icon-reorder"></i> 组权限信息 </div>
            <div class="tools"> <a href="" class="collapse"></a> </div>
          </div>
          <div class="portlet-body form">
            <form method="post" action="groupdo">
              <input type="hidden" name="act" value="edit" />
              <input type="hidden" name="groupid" value="<?=$this->group['groupid'];?>" />
              <div class="form-body">
              	<div class="form-group">
                  <label for="_name">组名称</label>
                  <div class="input-group"> <span class="input-group-addon"><i class="icon-group"></i></span>
                    <input type="text" name="name" class="form-control" value="<?=$this->group['name'];?>" id="_name" placeholder="请输入组名称">
                  </div>
                  <span class="help-block">例如：客服部</span> </div>
                <hr>
                </hr>                
                <div class="form-group">
                  <label >权限范围</label>
                  <div class="input-group">
                    <?php
            				if($this->privs['model']){	
            					$gppriv = explode(",",$this->group['privs']);
            					foreach($this->privs['model'] as $k => $r){
            						if(in_array($k,$gppriv)) $chk = ' checked';
            						else $chk ='';
            					
            						echo '<div style="float:left;width:33%;min-width:120px;"><input type="checkbox" name="PRIVS[]" id="ck'.$k.'" value="'.$k.'"'.$chk.' /><label for="ck'.$k.'">'.$r[0].'</label></div>';
            					}
            				
            				}
            				
            				?>
                  </div>
                </div>
                <hr>
                </hr>
                <div class="form-group">
                  <label>最后操作</label>
                  <h5>
                    <? if($this->group['last_aid']>0) echo '<strong>'.$this->aid[$this->group['last_staffid']].'</strong> 最后修改于 '.date("Y-m-d H:i:s",$this->group['last_edit']); else echo 'N/A';?>
                  </h5>
                </div>
                              </div>
              <div class="form-actions">
                <input type="submit" class="btn blue" value="提 交">
              </div>
            </form>
          </div>
        </div>
        <!-- END SAMPLE FORM PORTLET--> 
        
      </div>
    </div>
    <!-- END PAGE CONTENT--> 
  </div>
  <!-- END PAGE --> 
</div>
<!-- END CONTAINER -->
<?php include($this->c['_homes']['_viewsHome'].'/_global/_footer.php');?>
<script>
jQuery(document).ready(function() {    
   App.init();
});
</script> 
<!-- END JAVASCRIPTS -->
</body>
<!-- END BODY -->
</html>